#pragma once

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include "ui_WgtNavigationBar.h"

typedef struct _NavigationBarItem
{
	int m_Id;
	QString m_qstrName;
	QString m_qstrNodeId;
} NavigationBarItem;

class WgtNavigationBar : public QWidget
{
	Q_OBJECT

public:
	WgtNavigationBar(QWidget *parent = nullptr);
	~WgtNavigationBar();

	int AddItem(const QString &_qstrName);
	void AddItems(const QVector<NavigationBarItem> &_qvecItems);
	void ClearItems();

signals:
	void SignNavTo(QString _qstrFilePath);
	void SignShow();

private:
	Ui::WgtNavigationBarClass ui;
	QVector<NavigationBarItem> m_qvecItems;
	QPushButton *m_pbtnSpan = nullptr;
	QHBoxLayout *m_pMainLayout = nullptr;
	QLabel *m_plbLogo = nullptr;
};
